package com.example.project.api.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author: Jerry.Zhang
 * @date: 2022/9/22 14:02
 */
/**
    * 盲盒
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_box")
public class TbBox implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 物品名称
     */
    @TableField(value = "good_name")
    private String goodName;

    /**
     * 物品价值
     */
    @TableField(value = "good_price")
    private BigDecimal goodPrice;

    /**
     * 物品数量
     */
    @TableField(value = "good_num")
    private Integer goodNum;

    /**
     * 物品图片
     */
    @TableField(value = "good_img")
    private String goodImg;

    private static final long serialVersionUID = 1L;
}